#ifndef _TIME_MARK_
#define _TIME_MARK_

class TimeMark
{
public:
	DWORD dwYear;
	BYTE bMonth;
	BYTE bDay;
	BYTE bHour;
	BYTE bMinute;
	BYTE bSecond;

	TimeMark();
	TimeMark(LPCTSTR strTime, BOOL bSeconds = FALSE);
	TimeMark(LPCTSTR strDate, LPCTSTR strTime);

	int compare(TimeMark& tm);
	static void set(TimeMark* tm, LPCTSTR strTime, BOOL bSeconds = FALSE);
	static void set(TimeMark* tm, LPCTSTR strDate, LPCTSTR strTime);
	LONG toLong();
	static LONG toLong(int year, int month, int day, int hour, int minute, int second);
	LPTSTR toString(LPTSTR p);
	CString toString();
#ifdef _JNC_REC_
	CString toJNCString();
	BOOL parseJNCString(CString& str);
#endif //def _JNC_REC_
};

#endif
